package bb.lanxing.util;

import bb.lanxing.calc.data.SourcePoint;

public class DurationUtil {
    public static long get(SourcePoint sourcePoint, SourcePoint sourcePoint2) {
        return calcDuration(sourcePoint.getTimestamp(), sourcePoint2.getTimestamp());
    }

    public static long get(long j, long j2) {
        return calcDuration(j, j2);
    }

    private static long calcDuration(long j, long j2) {
        return Math.round((j - j2) / 1000.0d);
    }
}
